//
//  TokenProtocol.h
//  TabulaImaginarium9
//
//  Created by TA2 on 6/16/11.
//  Copyright 2011 __MyCompanyName__. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "NetworkController.h"
#import "NetworkProtocol.h"

@interface TokenProtocol : NetworkProtocol {
    TokenView *tokenView;
}

@property (nonatomic, retain) TokenView *tokenView;

- (void)readPacket:(NSArray *)packet fromSocket:(AsyncSocket *)socket;

- (void)sendToken:(NSString *)path atPoint:(CGPoint)point withId:tokenId;
- (void)sendToken:(NSString *)path atPoint:(CGPoint)point withId:tokenId toSocket:(AsyncSocket *)socket;
- (void)sendRequestForTokenAtPoint:(CGPoint)point;
- (void)sendRequestForAllTokens;
- (void)startMovingToken:(CGPoint)point withId:(NSString *)tokenId;
- (void)moveMovingToken:(CGPoint)point;
- (void)placeMovingToken:(CGPoint)point;

- (void)setupProtocol;
@end
